package com.corticon.dialogs.dao;

import java.util.List;

import com.corticon.dialogs.model.UserGroup;
import com.corticon.dialogs.util.Pager;

/**
 *
 * @author Lifan Yang
 */
public interface UserGroupDAO extends GenericDAO<UserGroup, String> {

    long getCountByCriteria(String criteria);

    List<UserGroup> getPageOfUserGroups(String criteria);

    long getSearchCount(String keywords);

    List<UserGroup> search(String keywords, Pager pager);
}
